<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__trigmux__functions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions<div class="ingroups"><a class="el" href="group__group__trigmux.html">TrigMux      (Trigger Multiplexer)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga3671fac144b75c3b3eddc5ab46ae96f6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__trigmux__enums.html#ga30a0d3f7caf6a59d3fb7a618a95ed6ae">cy_en_trigmux_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a> (uint32_t inTrig, uint32_t outTrig, bool invert, en_trig_type_t trigType)</td></tr>
<tr class="memdesc:ga3671fac144b75c3b3eddc5ab46ae96f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Connects an input trigger source and output trigger.  <a href="#ga3671fac144b75c3b3eddc5ab46ae96f6">More...</a><br /></td></tr>
<tr class="separator:ga3671fac144b75c3b3eddc5ab46ae96f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab7106b8fe037e2ebbbb996289ad1fb00"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__trigmux__enums.html#ga30a0d3f7caf6a59d3fb7a618a95ed6ae">cy_en_trigmux_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__trigmux__functions.html#gab7106b8fe037e2ebbbb996289ad1fb00">Cy_TrigMux_Select</a> (uint32_t outTrig, bool invert, en_trig_type_t trigType)</td></tr>
<tr class="memdesc:gab7106b8fe037e2ebbbb996289ad1fb00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables and configures the specified 1-to-1 trigger line.  <a href="#gab7106b8fe037e2ebbbb996289ad1fb00">More...</a><br /></td></tr>
<tr class="separator:gab7106b8fe037e2ebbbb996289ad1fb00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9cf035a60df4c7073280b8ac21666b22"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__trigmux__enums.html#ga30a0d3f7caf6a59d3fb7a618a95ed6ae">cy_en_trigmux_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__trigmux__functions.html#ga9cf035a60df4c7073280b8ac21666b22">Cy_TrigMux_Deselect</a> (uint32_t outTrig)</td></tr>
<tr class="memdesc:ga9cf035a60df4c7073280b8ac21666b22"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the specified 1-to-1 trigger line.  <a href="#ga9cf035a60df4c7073280b8ac21666b22">More...</a><br /></td></tr>
<tr class="separator:ga9cf035a60df4c7073280b8ac21666b22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga797820d8e7c746129d354888da382498"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__trigmux__enums.html#ga30a0d3f7caf6a59d3fb7a618a95ed6ae">cy_en_trigmux_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__trigmux__functions.html#ga797820d8e7c746129d354888da382498">Cy_TrigMux_SetDebugFreeze</a> (uint32_t outTrig, bool enable)</td></tr>
<tr class="memdesc:ga797820d8e7c746129d354888da382498"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables/disables the Debug Freeze feature for the specified trigger multiplexer or 1-to-1 trigger line.  <a href="#ga797820d8e7c746129d354888da382498">More...</a><br /></td></tr>
<tr class="separator:ga797820d8e7c746129d354888da382498"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga3671fac144b75c3b3eddc5ab46ae96f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3671fac144b75c3b3eddc5ab46ae96f6">&#9670;&nbsp;</a></span>Cy_TrigMux_Connect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__trigmux__enums.html#ga30a0d3f7caf6a59d3fb7a618a95ed6ae">cy_en_trigmux_status_t</a> Cy_TrigMux_Connect </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>inTrig</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>outTrig</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>invert</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">en_trig_type_t&#160;</td>
          <td class="paramname"><em>trigType</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Connects an input trigger source and output trigger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">inTrig</td><td>An input selection for the trigger mux.<ul>
<li>Bit 30 should be cleared.</li>
<li>Bit 12 should be cleared.</li>
<li>Bits 11:8 represent the trigger group selection.</li>
<li>Bits 7:0 select the input trigger signal for the specified trigger multiplexer.</li>
</ul>
</td></tr>
    <tr><td class="paramname">outTrig</td><td>The output of the trigger mux. This refers to the consumer of the trigger mux.<ul>
<li>Bit 30 should be set.</li>
<li>Bit 12 should be cleared.</li>
<li>Bits 11:8 represent the trigger group selection.<br />
 For PERI_ver1:</li>
<li>Bits 6:0 select the output trigger number in the trigger group.<br />
 For PERI_ver2:</li>
<li>Bits 7:0 select the output trigger number in the trigger group.</li>
</ul>
</td></tr>
    <tr><td class="paramname">invert</td><td><ul>
<li>true: The output trigger is inverted.</li>
<li>false: The output trigger is not inverted.</li>
</ul>
</td></tr>
    <tr><td class="paramname">trigType</td><td>The trigger signal type.<ul>
<li>TRIGGER_TYPE_EDGE: The trigger is synchronized to the consumer blocks clock and a two-cycle pulse is generated on this clock.</li>
<li>TRIGGER_TYPE_LEVEL: The trigger is a simple level output.</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status:<ul>
<li>CY_TRIGMUX_SUCCESS: The connection is made successfully.</li>
<li>CY_TRIGMUX_BAD_PARAM: Some parameter is invalid.</li>
</ul>
</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Setup a trigger multiplexer connection from TCPWM0 counter 0 overflow output to DataWire 0 channel 0 trigger input.</span></div><div class="line"><span class="comment">     * Also for trigger signal evidence setup two additional trigger multiplexer connections:</span></div><div class="line"><span class="comment">     * - from the same TCPWM0 counter 0 overflow output to HSIOM trigger IO output 0 (GPIO port 0.4)</span></div><div class="line"><span class="comment">     * - from the DataWire 0 channel 0 trigger output to HSIOM trigger IO output 1 (GPIO port 0.5)</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">#if (CY_IP_MXPERI_VERSION == 1U)</span></div><div class="line">    (void)<a class="code" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a>(TRIG11_IN_TCPWM0_TR_OVERFLOW0, TRIG11_OUT_TR_GROUP0_INPUT9, <span class="keyword">false</span>, TRIGGER_TYPE_LEVEL);</div><div class="line">    (void)<a class="code" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a>(TRIG0_IN_TR_GROUP11_OUTPUT0, TRIG0_OUT_CPUSS_DW0_TR_IN0, <span class="keyword">false</span>, TRIGGER_TYPE_EDGE);</div><div class="line"></div><div class="line">    (void)<a class="code" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a>(TRIG11_IN_TCPWM0_TR_OVERFLOW0, TRIG11_OUT_TR_GROUP8_INPUT9, <span class="keyword">false</span>, TRIGGER_TYPE_LEVEL);</div><div class="line">    (void)<a class="code" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a>(TRIG8_IN_TR_GROUP11_OUTPUT0, TRIG8_OUT_PERI_TR_IO_OUTPUT0, <span class="keyword">false</span>, TRIGGER_TYPE_EDGE);</div><div class="line"></div><div class="line">    (void)<a class="code" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a>(TRIG10_IN_CPUSS_DW0_TR_OUT0, TRIG10_OUT_TR_GROUP8_INPUT1, <span class="keyword">false</span>, TRIGGER_TYPE_LEVEL);</div><div class="line">    (void)<a class="code" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a>(TRIG8_IN_TR_GROUP10_OUTPUT0, TRIG8_OUT_PERI_TR_IO_OUTPUT1, <span class="keyword">false</span>, TRIGGER_TYPE_EDGE);</div><div class="line"><span class="preprocessor">#else </span><span class="comment">/* CY_IP_MXPERI_VERSION &gt; 1 */</span><span class="preprocessor"></span></div><div class="line">    (void)<a class="code" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a>(TRIG_IN_MUX_0_TCPWM0_TR_OVERFLOW0, TRIG_OUT_MUX_0_PDMA0_TR_IN0, <span class="keyword">false</span>, TRIGGER_TYPE_EDGE);</div><div class="line">    (void)<a class="code" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a>(TRIG_IN_MUX_4_TCPWM0_TR_OVERFLOW0, TRIG_OUT_MUX_4_HSIOM_TR_IO_OUTPUT0, <span class="keyword">false</span>, TRIGGER_TYPE_EDGE);</div><div class="line">    (void)<a class="code" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a>(TRIG_IN_MUX_4_PDMA0_TR_OUT0, TRIG_OUT_MUX_4_HSIOM_TR_IO_OUTPUT1, <span class="keyword">false</span>, TRIGGER_TYPE_EDGE);</div><div class="line"><span class="preprocessor">#endif </span><span class="comment">/* CY_IP_MXPERI_VERSION */</span><span class="preprocessor"></span></div><div class="line">    <span class="comment">/* Note: the Cy_TrigMux_Connect return status is ignored here because the provided parameters are correct.</span></div><div class="line"><span class="comment">     * It is made here just to reduce the code snippet redundancy, it is not recommended to do so in the user code.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Now initialize the correspondent GPIO pins */</span></div><div class="line">    <a class="code" href="group__group__gpio__functions__init.html#gaf57c501727276013d3e8974a9fb7d0a7">Cy_GPIO_Pin_FastInit</a>(GPIO_PRT0, 4UL, <a class="code" href="group__group__gpio__drive_modes.html#gacebd8bea6222d742bdfbfd86dabab940">CY_GPIO_DM_STRONG_IN_OFF</a>, 0UL, P0_4_PERI_TR_IO_OUTPUT0);</div><div class="line">    <a class="code" href="group__group__gpio__functions__init.html#gaf57c501727276013d3e8974a9fb7d0a7">Cy_GPIO_Pin_FastInit</a>(GPIO_PRT0, 5UL, <a class="code" href="group__group__gpio__drive_modes.html#gacebd8bea6222d742bdfbfd86dabab940">CY_GPIO_DM_STRONG_IN_OFF</a>, 0UL, P0_5_PERI_TR_IO_OUTPUT1);</div><div class="line">    </div><div class="line">    <span class="comment">/* Now the TCPWM0 counter 0 periodically triggers the DW0 channel 0 (each time when overflow event occurs).</span></div><div class="line"><span class="comment">     * Also the TCPWM and DMA output trigger signals can be observed with oscilloscope on pins P0.4 and P0.5 correspondingly.</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gab7106b8fe037e2ebbbb996289ad1fb00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab7106b8fe037e2ebbbb996289ad1fb00">&#9670;&nbsp;</a></span>Cy_TrigMux_Select()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__trigmux__enums.html#ga30a0d3f7caf6a59d3fb7a618a95ed6ae">cy_en_trigmux_status_t</a> Cy_TrigMux_Select </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>outTrig</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>invert</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">en_trig_type_t&#160;</td>
          <td class="paramname"><em>trigType</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables and configures the specified 1-to-1 trigger line. </p>
<p>For PERI_ver2 only.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">outTrig</td><td>The 1to1 trigger line.<ul>
<li>Bit 30 should be set.</li>
<li>Bit 12 should be set.</li>
<li>Bits 11:8 represent the 1-to-1 trigger group selection.</li>
<li>Bits 7:0 select the trigger line number in the trigger group.</li>
</ul>
</td></tr>
    <tr><td class="paramname">invert</td><td><ul>
<li>true: The trigger signal is inverted.</li>
<li>false: The trigger signal is not inverted.</li>
</ul>
</td></tr>
    <tr><td class="paramname">trigType</td><td>The trigger signal type.<ul>
<li>TRIGGER_TYPE_EDGE: The trigger is synchronized to the consumer blocks clock and a two-cycle pulse is generated on this clock.</li>
<li>TRIGGER_TYPE_LEVEL: The trigger is a simple level output.</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status:<ul>
<li>CY_TRIGMUX_SUCCESS: The selection is made successfully.</li>
<li>CY_TRIGMUX_BAD_PARAM: Some parameter is invalid.</li>
</ul>
</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Set up a 1 to 1 connection between two peripherals; in this case from SCB0 TX Trigger Output to DW0 channel 16 */</span></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__trigmux__enums.html#gga30a0d3f7caf6a59d3fb7a618a95ed6aea19e80892aa7755dd38c708994502d02c">CY_TRIGMUX_SUCCESS</a> != <a class="code" href="group__group__trigmux__functions.html#gab7106b8fe037e2ebbbb996289ad1fb00">Cy_TrigMux_Select</a>(TRIG_OUT_1TO1_0_SCB0_TX_TO_PDMA0_TR_IN16, <span class="keyword">false</span>, TRIGGER_TYPE_LEVEL))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga9cf035a60df4c7073280b8ac21666b22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9cf035a60df4c7073280b8ac21666b22">&#9670;&nbsp;</a></span>Cy_TrigMux_Deselect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__trigmux__enums.html#ga30a0d3f7caf6a59d3fb7a618a95ed6ae">cy_en_trigmux_status_t</a> Cy_TrigMux_Deselect </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>outTrig</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the specified 1-to-1 trigger line. </p>
<p>For PERI_ver2 only.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">outTrig</td><td>The 1to1 trigger line.<ul>
<li>Bit 30 should be set.</li>
<li>Bit 12 should be set.</li>
<li>Bits 11:8 represent the 1-to-1 trigger group selection.</li>
<li>Bits 7:0 select the trigger line number in the trigger group.</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status:<ul>
<li>CY_TRIGMUX_SUCCESS: The deselection is made successfully.</li>
<li>CY_TRIGMUX_BAD_PARAM: Some parameter is invalid.</li>
</ul>
</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Disable a 1 to 1 connection, using SCB0 TX Trigger Output to DataWire 0 channel 16 */</span></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__trigmux__enums.html#gga30a0d3f7caf6a59d3fb7a618a95ed6aea19e80892aa7755dd38c708994502d02c">CY_TRIGMUX_SUCCESS</a> != <a class="code" href="group__group__trigmux__functions.html#ga9cf035a60df4c7073280b8ac21666b22">Cy_TrigMux_Deselect</a>(TRIG_OUT_1TO1_0_SCB0_TX_TO_PDMA0_TR_IN16))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga797820d8e7c746129d354888da382498"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga797820d8e7c746129d354888da382498">&#9670;&nbsp;</a></span>Cy_TrigMux_SetDebugFreeze()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__trigmux__enums.html#ga30a0d3f7caf6a59d3fb7a618a95ed6ae">cy_en_trigmux_status_t</a> Cy_TrigMux_SetDebugFreeze </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>outTrig</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables/disables the Debug Freeze feature for the specified trigger multiplexer or 1-to-1 trigger line. </p>
<p>For PERI_ver2 only.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">outTrig</td><td>The output of the trigger mux or dedicated 1-to-1 trigger line.<ul>
<li>Bit 30 should be set.</li>
<li>For PERI_ver1 Bits 11:8 represent the trigger group selection.</li>
<li>For PERI_ver2 Bits 12:8 represent the trigger group selection.</li>
<li>Bits 7:0 select the output trigger number in the trigger group.</li>
</ul>
</td></tr>
    <tr><td class="paramname">enable</td><td><ul>
<li>true: The Debug Freeze feature is enabled.</li>
<li>false: The Debug Freeze feature is disabled.</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status:<ul>
<li>CY_TRIGMUX_SUCCESS: The operation is made successfully.</li>
<li>CY_TRIGMUX_BAD_PARAM: The outTrig parameter is invalid.</li>
</ul>
</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Enable a Debug Freeze feature using DW0 channel 0 trigger input */</span></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__trigmux__enums.html#gga30a0d3f7caf6a59d3fb7a618a95ed6aea19e80892aa7755dd38c708994502d02c">CY_TRIGMUX_SUCCESS</a> != <a class="code" href="group__group__trigmux__functions.html#ga797820d8e7c746129d354888da382498">Cy_TrigMux_SetDebugFreeze</a>(TRIG_OUT_MUX_0_PDMA0_TR_IN0, <span class="keyword">true</span>))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    </div><div class="line">    <span class="comment">/* Now the DW0 channel 0 trigger input will be frozen when</span></div><div class="line"><span class="comment">     * the tr_dbg_freeze signal is activated.</span></div><div class="line"><span class="comment">     * Usually the tr_dbg_freeze signal is intended to be activated from</span></div><div class="line"><span class="comment">     * the cpuss.cti_tr_out[x] signal, for example:</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a>(TRIG_IN_MUX_7_CTI_TR_OUT0, TRIG_OUT_MUX_7_DEBUG_FREEZE_TR_IN, <span class="keyword">false</span>, TRIGGER_TYPE_LEVEL);</div><div class="line">    <span class="comment">/* However it can be activated just with software triggering: */</span></div><div class="line">    <a class="code" href="group__group__trigmux.html#ga882218319ecd105dede8b382e9a1c4a4">Cy_TrigMux_SwTrigger</a>(TRIG_OUT_MUX_7_DEBUG_FREEZE_TR_IN, <a class="code" href="group__group__trigmux__macros.html#gab3a2b0e75a195d5fb7020cecc2caf948">CY_TRIGGER_INFINITE</a>);</div><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Disable a Debug Freeze feature using DW0 channel 0 trigger input */</span></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__trigmux__enums.html#gga30a0d3f7caf6a59d3fb7a618a95ed6aea19e80892aa7755dd38c708994502d02c">CY_TRIGMUX_SUCCESS</a> != <a class="code" href="group__group__trigmux__functions.html#ga797820d8e7c746129d354888da382498">Cy_TrigMux_SetDebugFreeze</a>(TRIG_OUT_MUX_0_PDMA0_TR_IN0, <span class="keyword">false</span>))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
